package com.yvdedu.my161121.addressbook.biz.service.impl;

import com.yvdedu.my161121.addressbook.biz.service.BookService;
import com.yvdedu.my161121.addressbook.biz.mapper.BookMapper;

import java.util.List;

import com.yvdedu.my161121.addressbook.biz.entity.Book;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class BookServiceImpl implements BookService {
    @Resource
    private BookMapper bookMapper;

    @Override
    public List<Book> query(int userId) {
        return bookMapper.query(userId);
    }

    @Override
    public Book get(int userId, int bookId) {
        return bookMapper.get(userId,bookId);
    }
}
 
